package main

import (
	_ "dailymanager/routers"
	beego "github.com/beego/beego/v2/server/web"
)

func main() {
	beego.AddFuncMap("prePage", Pre)
	beego.AddFuncMap("nextPage", Next)
	beego.Run()
}
func Pre(page int) (i int) {
	page -= 1
	i = page
	return i
}
func Next(page int) (i int) {
	page += 1
	i = page
	return i
}
